void random(int &x, int &y)
{
			x = (rand() % 100) / 2 + (rand() % 10) + 3;
			y = (rand() % 100) / 5 + 2;
	
}
int thua(ran d[], int t)
{
	for (int i = 1; i < t; i++)
	if (d[0].x == d[i].x && d[0].y == d[i].y)
		return 1;
	if (d[0].x <= 2 || d[0].y <= 1 || d[0].x >= 62 || d[0].y >= 22) return 1;
	return 0;
}
int Dif()
{
	unsigned char c;
	system("cls");
	gotoxy(30,4); printf("1. Easy");
	gotoxy(30,6); printf("2. Medium");
	gotoxy(30,8); printf("3. Hard");
	gotoxy(30,10); printf("4. Very Hard");
	while (1)
	{
		c=getch();
		switch (c)
		{
			case 49: return 200;
			case 50: return 150;
			case 51: return 100;
			case 52: return 50;
			default: break;
		}
	}
}
void hScore (int s[5], char n[5][10]) 
{
	system("cls");
	gotoxy(28,0); printf("High Score");
	for (int i = 0; i < 5; i++)
	{
		Sleep(300);
		gotoxy(20,2+i);
		printf("%12s %d", n[i], s[i]);
	}
	gotoxy(16,8);
	printf("Press any key to back the Menu...");
	getch();
}
